package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
 * 库存操作日志对象 wms_inventory_log
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
public class WmsInventoryLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    private Long logId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 操作类型：字典值 wms_operation_type */
    @Excel(name = "操作类型", dictType = "wms_operation_type")
    private String operationType;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long ownerId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 操作前库位ID */
    @Excel(name = "操作前库位ID")
    private Long beforeLocationId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long itemId;

    /** 操作前批次号 */
    @Excel(name = "操作前批次号")
    private String beforeBatchNo;

    /** 操作前容器号 */
    @Excel(name = "操作前容器号")
    private String beforeContainerNo;

    /** 操作数量 */
    @Excel(name = "操作数量")
    private BigDecimal operationQty;



    /** 操作前数量 */
    @Excel(name = "操作前数量")
    private BigDecimal beforeQty;

    /** 操作后数量 */
    @Excel(name = "操作后数量")
    private BigDecimal afterQty;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;



    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 关联单据类型 */
    @Excel(name = "关联单据类型")
    private String documentType;

    /** 关联单据号 */
    @Excel(name = "关联单据号")
    private String documentNo;

    /** 操作原因 */
    @Excel(name = "操作原因")
    private String reason;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operationBy;

    /** 操作后库位ID */
    @Excel(name = "操作后库位ID")
    private Long afterLocationId;

    /** 操作后批次号 */
    @Excel(name = "操作后批次号")
    private String afterBatchNo;

    /** 操作后容器号 */
    @Excel(name = "操作后容器号")
    private String afterContainerNo;

    /** 操作前库存状态 */
    @Excel(name = "操作前库存状态", dictType = "wms_inventory_status")
    private String beforeStatus;

    /** 操作后库存状态 */
    @Excel(name = "操作后库存状态", dictType = "wms_inventory_status")
    private String afterStatus;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setBeforeLocationId(Long beforeLocationId) 
    {
        this.beforeLocationId = beforeLocationId;
    }

    public Long getBeforeLocationId() 
    {
        return beforeLocationId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setBeforeBatchNo(String beforeBatchNo) 
    {
        this.beforeBatchNo = beforeBatchNo;
    }

    public String getBeforeBatchNo() 
    {
        return beforeBatchNo;
    }
    public void setBeforeContainerNo(String beforeContainerNo) 
    {
        this.beforeContainerNo = beforeContainerNo;
    }

    public String getBeforeContainerNo() 
    {
        return beforeContainerNo;
    }
    public void setOperationQty(BigDecimal operationQty) 
    {
        this.operationQty = operationQty;
    }

    public BigDecimal getOperationQty() 
    {
        return operationQty;
    }

    public void setBeforeQty(BigDecimal beforeQty) 
    {
        this.beforeQty = beforeQty;
    }

    public BigDecimal getBeforeQty() 
    {
        return beforeQty;
    }
    public void setAfterQty(BigDecimal afterQty) 
    {
        this.afterQty = afterQty;
    }

    public BigDecimal getAfterQty() 
    {
        return afterQty;
    }
    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setDocumentType(String documentType) 
    {
        this.documentType = documentType;
    }

    public String getDocumentType() 
    {
        return documentType;
    }
    public void setDocumentNo(String documentNo) 
    {
        this.documentNo = documentNo;
    }

    public String getDocumentNo() 
    {
        return documentNo;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setOperationBy(String operationBy) 
    {
        this.operationBy = operationBy;
    }

    public String getOperationBy() 
    {
        return operationBy;
    }
    public void setAfterLocationId(Long afterLocationId) 
    {
        this.afterLocationId = afterLocationId;
    }

    public Long getAfterLocationId() 
    {
        return afterLocationId;
    }
    public void setAfterBatchNo(String afterBatchNo) 
    {
        this.afterBatchNo = afterBatchNo;
    }

    public String getAfterBatchNo() 
    {
        return afterBatchNo;
    }
    public void setAfterContainerNo(String afterContainerNo) 
    {
        this.afterContainerNo = afterContainerNo;
    }

    public String getAfterContainerNo() 
    {
        return afterContainerNo;
    }
    public void setBeforeStatus(String beforeStatus) 
    {
        this.beforeStatus = beforeStatus;
    }

    public String getBeforeStatus() 
    {
        return beforeStatus;
    }
    public void setAfterStatus(String afterStatus) 
    {
        this.afterStatus = afterStatus;
    }

    public String getAfterStatus() 
    {
        return afterStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("tenantId", getTenantId())
            .append("operationType", getOperationType())
            .append("ownerId", getOwnerId())
            .append("warehouseId", getWarehouseId())
            .append("beforeLocationId", getBeforeLocationId())
            .append("itemId", getItemId())
            .append("beforeBatchNo", getBeforeBatchNo())
            .append("beforeContainerNo", getBeforeContainerNo())
            .append("operationQty", getOperationQty())
            .append("beforeQty", getBeforeQty())
            .append("afterQty", getAfterQty())
            .append("operationTime", getOperationTime())
            .append("supplierId", getSupplierId())
            .append("supplierName", getSupplierName())
            .append("documentType", getDocumentType())
            .append("documentNo", getDocumentNo())
            .append("reason", getReason())
            .append("operationBy", getOperationBy())
            .append("afterLocationId", getAfterLocationId())
            .append("afterBatchNo", getAfterBatchNo())
            .append("afterContainerNo", getAfterContainerNo())
            .append("beforeStatus", getBeforeStatus())
            .append("afterStatus", getAfterStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 关联查询字段
    /** 货主名称 */
    private String ownerName;

    /** 仓库名称 */
    private String warehouseName;

    /** 操作前库位编码 */
    private String beforeLocationCode;

    /** 操作后库位编码 */
    private String afterLocationCode;

    /** 商品编码 */
    private String itemCode;

    /** 商品名称 */
    private String itemName;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getBeforeLocationCode() {
        return beforeLocationCode;
    }

    public void setBeforeLocationCode(String beforeLocationCode) {
        this.beforeLocationCode = beforeLocationCode;
    }

    public String getAfterLocationCode() {
        return afterLocationCode;
    }

    public void setAfterLocationCode(String afterLocationCode) {
        this.afterLocationCode = afterLocationCode;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
}